package com.fingard.dsp.bank.reqrespobj.currencyexchange.detail;

import java.util.HashMap;

import com.fingard.xml.XmlTextWriter;

/**
 * Created by Lewis on 2017/9/23.
 */

//结汇购汇返回的明细节点
public class RetAtsExchangeDetail {

	public String respCode;
    public String respInfo;
    public String transState;
    public String reqSeqID;
    public String payInfoCode;
    public String transAmt;
    public String settlementRate;//结汇汇率
	public String settlementRmbAmount;//结汇人民币金额


    
    public void writeToXml(XmlTextWriter retXmlWriter){
    	retXmlWriter.writeStartElement("DetailRecord");
		retXmlWriter.writeElementString("RespCode", respCode);
		retXmlWriter.writeElementString("RespInfo", respInfo);
		retXmlWriter.writeElementString("TransState", transState);
		retXmlWriter.writeElementString("ReqSeqID", reqSeqID);
		retXmlWriter.writeElementString("PayInfoCode", payInfoCode);
		retXmlWriter.writeElementString("TransAmt", transAmt);
		retXmlWriter.writeElementString("SettlementRate", settlementRate);
		retXmlWriter.writeElementString("SettlementRmbAmount", settlementRmbAmount);
    }
    
    public HashMap<String,String> writeToHash(){
    	HashMap<String,String> retHash = new HashMap<String,String>();
    	retHash.put("RespCode", respCode);
    	retHash.put("RespInfo", respInfo);
    	retHash.put("RdSeq", reqSeqID);
    	retHash.put("TransState", transState);
    	retHash.put("PayInfoCode", payInfoCode);
		retHash.put("SettlementRate", settlementRate);
		retHash.put("SettlementRmbAmount", settlementRmbAmount);
    	return retHash;
    }
}
